<tagLib name="strends" />
<include file="Public:header" />
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:U(MODULE_NAME.'/index')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/update')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="180">{%TITLES}</th>
		<td><input type="text" class="textinput requireinput" name="titles" value="{$vo.titles}"/></td>
	</tr>
	<tr>
		<th width="180">{%MODEL}</th>
		<td><input type="text" class="textinput requireinput" name="model" value="{$vo.model}"/></td>
	</tr>
 	<tr>
		<th>{%THUMBS}</th>
		<td>
			<input type="file" class="fileinput" name="thumbs" size="30"/>
			<if condition="$vo['thumbs'] neq ''">
				<a href="__ROOT__/{$vo['thumbs']}" target="_blank" >{%VIEW}</a>
			</if>
		</td>
	</tr>
	<tr>
		<th width="180">{%STYLIST}</th>
		<td><input type="text" class="textinput requireinput" name="stylist" value="{$vo.stylist}"/></td>
	</tr>
	<tr>
		<th>{%ISSHOW}</th>
		<td>
			<select name="isshow" >
				<if condition="$vo.isshow eq  1 "> 
						<option value="1" selected  >显示</option>
				<else /> 
						<option value="1"   >显示</option>
				</if>
				<if condition="$vo.isshow eq  0 "> 
						<option value="0" selected  >不显示</option>
				<else /> 
						<option value="0">不显示</option>
				</if>
			</select> 
		</td>
	</tr>
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="hidden" name="id" value="{$vo.id}" />
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>
<div  style="clear:both;"></div>
<div>
	
	<foreach name="data" item="daval" >
		<div style="width:280px;height:280px;position:relative;margin:10px 0px 10px 10px;border:5px solid gray;display:inline-block;">{$daval}<img src="/trends/Tpl/Default/Static/Images/closeimg.png" class="delimg" style="position:absolute;right:0px;top:0px;cursor:pointer;" /></div>
	</foreach>
	
</div>
<script type="text/javascript">
function dblTag(obj)
{
	if(obj.getAttribute('rel') == 0)
	{
		obj.setAttribute('rel',1);
		$(obj).prependTo($("#category_tag_list"));
	}
	else
	{
		obj.setAttribute('rel',0);
		document.getElementById("tag_list").appendChild(obj);
	}
}
</script>
<script>
	var obj=null;
	$(function (){
		$(".delimg").click(function (){
			var id=$(this).siblings().attr("name");
			obj= $(this);
			var post_id="id="+id;
			$.ajax({
				url: "/trends/index.php?m=Voguealbum&a=deleteimg",
				cache:false,
				data:post_id,
				dataType:"json",
				error: function(){
					alert("出现意外,系统问题!");
				},
				success: function(result){
					var  result=result.msg;
					if(result=="succeess"){
						obj.parent("div").remove();
					}else{
						alert("失败");
					}
				}
			});
		});
	});
</script>
<include file="Public:footer" />